package org.corey.voxiverse.layers;

import java.util.Random;

import org.corey.voxiverse.Block;
import org.corey.voxiverse.Block.BlockType;

public class WaterGen {
	public WaterGen(){
		
	}
	
	public static void Generate(Block[][][] Blocks, int CHUNK_SIZE, Random r, int x, int y, int z){
		if (!(x==0) && !(x==CHUNK_SIZE) && !(z ==0) && !(z==CHUNK_SIZE) && !(y==0) && !(y==CHUNK_SIZE)){
			if (Blocks[x-1][y][z].GetID() == 0 || Blocks[x][y-1][z].GetID() == 0 || Blocks[x][y][z-1].GetID() == 0){
				Blocks[x][y][z] = new Block(BlockType.BlockType_Water);
			}
		}
	}
}
